package net.hvacapp.cmvrfforandroid.db.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 页面信息
 */
@DatabaseTable
public class Cache {

    public Cache() {

    }

    /**
     * 主键
     */
    @DatabaseField(generatedId = true, columnName = "_id")
    private int id;
    /**
     * 用户名
     */
    @DatabaseField
    private String username;
    /**
     * 请求地址*
     */
    @DatabaseField
    private String url;
    /**
     * 过期时间（系统时间+失效时间）
     */
    @DatabaseField
    private long datetime;
    /**
     * 失效时间
     */
    @DatabaseField
    private long expire;
    /**
     * 返回json字符串*
     */
    @DatabaseField
    private String response;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getDateTime() {
        return datetime;
    }

    public void setDateTime(long datetime) {
        this.datetime = datetime;
    }

    public long getExpire() {
        return expire;
    }

    public void setExpire(long expire) {
        this.expire = expire;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

}
